From: emellor@ewan Date: Tue, 20 Sep 2005 16:25:00 +0000 (+0100) Subject: Move definition of xc, to avoid confusing pylint. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16780^2~26 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f519344e5c8657bf7894ed930d622980a6ea5362;p=xen.git Move definition of xc, to avoid confusing pylint. Signed-off-by: Ewan Mellor --- diff --git a/tools/python/xen/xend/XendCheckpoint.py b/tools/python/xen/xend/XendCheckpoint.py index 0c4f5aa059..51d0904245 100644 --- a/tools/python/xen/xend/XendCheckpoint.py +++ b/tools/python/xen/xend/XendCheckpoint.py @@ -4,7 +4,6 @@ # Public License. See the file "COPYING" in the main directory of # this archive for more details. -import errno import os import re import select @@ -12,7 +11,7 @@ import sxp from string import join from struct import pack, unpack, calcsize from xen.util.xpopen import xPopen3 -import xen.lowlevel.xc; xc = xen.lowlevel.xc.new() +import xen.lowlevel.xc from xen.xend.xenstore.xsutil import IntroduceDomain from XendError import XendError @@ -25,6 +24,10 @@ PATH_XC_RESTORE = "/usr/libexec/xen/xc_restore" sizeof_int = calcsize("i") sizeof_unsigned_long = calcsize("L") + +xc = xen.lowlevel.xc.new() + + def write_exact(fd, buf, errmsg): if os.write(fd, buf) != len(buf): raise XendError(errmsg)